<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>GChartWrapper.charts.templatetags.charts</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="GChartWrapper-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="GChartWrapper-module.html">Package&nbsp;GChartWrapper</a> ::
        <a href="GChartWrapper.charts-module.html" onclick="show_private();">Package&nbsp;charts</a> ::
        <a href="GChartWrapper.charts.templatetags-module.html">Package&nbsp;templatetags</a> ::
        Module&nbsp;charts
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="GChartWrapper.charts.templatetags.charts-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="GChartWrapper.charts.templatetags.charts-module.html">Module GChartWrapper.charts.templatetags.charts</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">Django templatetags for chart and note types</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">Now takes an as argument</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">If the as argument is 'img', it will return a XHTML &lt;img/&gt;</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">If the as argument is 'url', it will simply return the url of the chart</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">If the as argument is anything else, the chart will be loaded into the context</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">and named what the as argument is</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">{% chart ... [as url|img|varname] %}</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring">...</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">{% endchart %}</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">Example:</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">    {% chart Pie3D 1 2 3 4 5 as pie %}</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">        {% label A B C D %}</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">        {% color green %}</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">    {% endchart %}</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">    {% pie %} # The chart obj itself</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-docstring">    {% pie.image %} # The PIL instance</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-docstring">    {% pie.checksum %} # An SHA1 checksum</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">The FancyNode powers the tag for Note,Pin,Text and Bubble charts</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-docstring">The &lt;type&gt; argument is one of the chart types in lower case</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-docstring">    {% &lt;type&gt; ... [as url|img|varname]%}</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-docstring">    Example:</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-docstring">        {% bubble icon_text_big snack bb $2.99 ffbb00 black as img %}</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">django</tt><tt class="py-op">.</tt><tt class="py-name">template</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Library</tt><tt class="py-op">,</tt><tt class="py-name">Node</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">django</tt><tt class="py-op">.</tt><tt class="py-name">template</tt> <tt class="py-keyword">import</tt> <tt class="py-name">resolve_variable</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Package GChartWrapper=GChartWrapper-module.html"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-0', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable GChartWrapper.charts.templatetags.charts.register=GChartWrapper.charts.templatetags.charts-module.html#register"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-1', 'register', 'link-1');">register</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Library</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"> </tt>
<a name="GenericNode"></a><div id="GenericNode-def"><a name="L39"></a><tt class="py-lineno"> 39</tt> <a class="py-toggle" href="#" id="GenericNode-toggle" onclick="return toggle('GenericNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.GenericNode-class.html">GenericNode</a><tt class="py-op">(</tt><tt class="py-base-class">Node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GenericNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="GenericNode-expanded"><a name="GenericNode.__init__"></a><div id="GenericNode.__init__-def"><a name="L40"></a><tt class="py-lineno"> 40</tt> <a class="py-toggle" href="#" id="GenericNode.__init__-toggle" onclick="return toggle('GenericNode.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.GenericNode-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GenericNode.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GenericNode.__init__-expanded"><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name" targets="Method GChartWrapper.GChart.map()=GChartWrapper.GChart-class.html#map"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-2', 'map', 'link-2');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">unicode</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
</div><a name="GenericNode.render"></a><div id="GenericNode.render-def"><a name="L42"></a><tt class="py-lineno"> 42</tt> <a class="py-toggle" href="#" id="GenericNode.render-toggle" onclick="return toggle('GenericNode.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.GenericNode-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">context</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GenericNode.render-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GenericNode.render-expanded"><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">n</tt><tt class="py-op">,</tt><tt class="py-name">arg</tt> <tt class="py-keyword">in</tt> <tt class="py-name">enumerate</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">arg</tt> <tt class="py-keyword">in</tt> <tt class="py-name">context</tt><tt class="py-op">:</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">resolve_variable</tt><tt class="py-op">(</tt><tt class="py-name">arg</tt><tt class="py-op">,</tt> <tt class="py-name">context</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">arg</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'"'</tt> <tt class="py-keyword">and</tt> <tt class="py-name">arg</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'"'</tt><tt class="py-op">:</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">arg</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">arg</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">"'"</tt> <tt class="py-keyword">and</tt> <tt class="py-name">arg</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">"'"</tt><tt class="py-op">:</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">arg</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Method GChartWrapper.charts.templatetags.charts.FancyNode.post_render()=GChartWrapper.charts.templatetags.charts.FancyNode-class.html#post_render,Method GChartWrapper.charts.templatetags.charts.GenericNode.post_render()=GChartWrapper.charts.templatetags.charts.GenericNode-class.html#post_render"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.post_render
GChartWrapper.charts.templatetags.charts.GenericNode.post_render" class="py-name" href="#" onclick="return doclink('link-3', 'post_render', 'link-3');">post_render</a></tt><tt class="py-op">(</tt><tt class="py-name">context</tt><tt class="py-op">)</tt> </tt>
</div><a name="GenericNode.post_render"></a><div id="GenericNode.post_render-def"><a name="L51"></a><tt class="py-lineno"> 51</tt> <a class="py-toggle" href="#" id="GenericNode.post_render-toggle" onclick="return toggle('GenericNode.post_render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.GenericNode-class.html#post_render">post_render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">context</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt> </tt>
</div></div><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">     </tt>
<a name="attribute"></a><div id="attribute-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="attribute-toggle" onclick="return toggle('attribute');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts-module.html#attribute">attribute</a><tt class="py-op">(</tt><tt class="py-param">parser</tt><tt class="py-op">,</tt> <tt class="py-param">token</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="attribute-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="attribute-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-4" class="py-name" targets="Class GChartWrapper.charts.templatetags.charts.GenericNode=GChartWrapper.charts.templatetags.charts.GenericNode-class.html"><a title="GChartWrapper.charts.templatetags.charts.GenericNode" class="py-name" href="#" onclick="return doclink('link-4', 'GenericNode', 'link-4');">GenericNode</a></tt><tt class="py-op">(</tt><tt class="py-name">token</tt><tt class="py-op">.</tt><tt class="py-name">split_contents</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt id="link-5" class="py-name" targets="Variable GChartWrapper.charts.templatetags.charts.tag=GChartWrapper.charts.templatetags.charts-module.html#tag"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-5', 'tag', 'link-5');">tag</a></tt> <tt class="py-keyword">in</tt> <tt id="link-6" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-6', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module GChartWrapper.constants=GChartWrapper.constants-module.html"><a title="GChartWrapper.constants" class="py-name" href="#" onclick="return doclink('link-7', 'constants', 'link-7');">constants</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Variable GChartWrapper.GChart'.TTAGSATTRS=GChartWrapper.GChart%27-module.html#TTAGSATTRS,Variable GChartWrapper.constants.TTAGSATTRS=GChartWrapper.constants-module.html#TTAGSATTRS"><a title="GChartWrapper.GChart'.TTAGSATTRS
GChartWrapper.constants.TTAGSATTRS" class="py-name" href="#" onclick="return doclink('link-8', 'TTAGSATTRS', 'link-8');">TTAGSATTRS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">    <tt id="link-9" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-9', 'register', 'link-1');">register</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-10', 'tag', 'link-5');">tag</a></tt><tt class="py-op">(</tt><tt id="link-11" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-11', 'tag', 'link-5');">tag</a></tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name" targets="Function GChartWrapper.charts.templatetags.charts.attribute()=GChartWrapper.charts.templatetags.charts-module.html#attribute"><a title="GChartWrapper.charts.templatetags.charts.attribute" class="py-name" href="#" onclick="return doclink('link-12', 'attribute', 'link-12');">attribute</a></tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"> </tt>
<a name="ChartNode"></a><div id="ChartNode-def"><a name="L59"></a><tt class="py-lineno"> 59</tt> <a class="py-toggle" href="#" id="ChartNode-toggle" onclick="return toggle('ChartNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.ChartNode-class.html">ChartNode</a><tt class="py-op">(</tt><tt class="py-base-class">Node</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChartNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ChartNode-expanded"><a name="ChartNode.__init__"></a><div id="ChartNode.__init__-def"><a name="L60"></a><tt class="py-lineno"> 60</tt> <a class="py-toggle" href="#" id="ChartNode.__init__-toggle" onclick="return toggle('ChartNode.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.ChartNode-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tokens</tt><tt class="py-op">,</tt> <tt class="py-param">nodelist</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChartNode.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChartNode.__init__-expanded"><a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method GChartWrapper.GChart.type()=GChartWrapper.GChart-class.html#type"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-13', 'type', 'link-13');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">tokens</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">tokens</tt> <tt class="py-keyword">and</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">tokens</tt><tt class="py-op">)</tt><tt class="py-op">&gt;</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-14', 'type', 'link-13');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">tokens</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt>    </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">tokens</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'as'</tt><tt class="py-op">:</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt class="py-name">tokens</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">tokens</tt> <tt class="py-op">=</tt> <tt class="py-name">tokens</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">tokens</tt> <tt class="py-op">=</tt> <tt class="py-name">tokens</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">nodelist</tt> <tt class="py-op">=</tt> <tt class="py-name">nodelist</tt> </tt>
</div><a name="ChartNode.render"></a><div id="ChartNode.render-def"><a name="L72"></a><tt class="py-lineno"> 72</tt> <a class="py-toggle" href="#" id="ChartNode.render-toggle" onclick="return toggle('ChartNode.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.ChartNode-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">context</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt class="py-name">kwargs</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-15" class="py-name" targets="Variable GChartWrapper.GChart'._AbstractGChart.t=GChartWrapper.GChart%27._AbstractGChart-class.html#t,Variable GChartWrapper.HorizontalBarGroup.t=GChartWrapper.HorizontalBarGroup-class.html#t,Variable GChartWrapper.HorizontalBarStack.t=GChartWrapper.HorizontalBarStack-class.html#t,Variable GChartWrapper.Line.t=GChartWrapper.Line-class.html#t,Variable GChartWrapper.LineXY.t=GChartWrapper.LineXY-class.html#t,Variable GChartWrapper.Map.t=GChartWrapper.Map-class.html#t,Variable GChartWrapper.Meter.t=GChartWrapper.Meter-class.html#t,Variable GChartWrapper.Pie.t=GChartWrapper.Pie-class.html#t,Variable GChartWrapper.Pie3D.t=GChartWrapper.Pie3D-class.html#t,Variable GChartWrapper.PieC.t=GChartWrapper.PieC-class.html#t,Variable GChartWrapper.Radar.t=GChartWrapper.Radar-class.html#t,Variable GChartWrapper.RadarSpline.t=GChartWrapper.RadarSpline-class.html#t,Variable GChartWrapper.Scatter.t=GChartWrapper.Scatter-class.html#t,Variable GChartWrapper.Sparkline.t=GChartWrapper.Sparkline-class.html#t,Variable GChartWrapper.Venn.t=GChartWrapper.Venn-class.html#t,Variable GChartWrapper.VerticalBarGroup.t=GChartWrapper.VerticalBarGroup-class.html#t,Variable GChartWrapper.VerticalBarStack.t=GChartWrapper.VerticalBarStack-class.html#t"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-15', 't', 'link-15');">t</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">tokens</tt><tt class="py-op">:</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">                <tt class="py-name">args</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">resolve_variable</tt><tt class="py-op">(</tt><tt id="link-16" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-16', 't', 'link-15');">t</a></tt><tt class="py-op">,</tt><tt class="py-name">context</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt>         </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">                    <tt class="py-name">args</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">float</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-17', 't', 'link-15');">t</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">                    <tt class="py-name">arg</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-18', 't', 'link-15');">t</a></tt><tt class="py-op">)</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">arg</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'='</tt><tt class="py-op">)</tt><tt class="py-op">&gt;</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">                        <tt class="py-name">k</tt><tt class="py-op">,</tt><tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">arg</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'='</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">                        <tt class="py-name">kwargs</tt><tt class="py-op">[</tt><tt class="py-name">k</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">v</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">                    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">                        <tt class="py-name">args</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">arg</tt><tt class="py-op">)</tt>    </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-keyword">and</tt> <tt id="link-19" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-19', 'type', 'link-13');">type</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt id="link-20" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-20', 'map', 'link-2');">map</a></tt><tt class="py-op">(</tt><tt id="link-21" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-21', 'type', 'link-13');">type</a></tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt>    </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-22', 'type', 'link-13');">type</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">dir</tt><tt class="py-op">(</tt><tt id="link-23" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-23', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">            <tt id="link-24" class="py-name" targets="Function GChartWrapper.chart()=GChartWrapper-module.html#chart"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-24', 'chart', 'link-24');">chart</a></tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-25', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-26', 'type', 'link-13');">type</a></tt><tt class="py-op">)</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt><tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-27', 'type', 'link-13');">type</a></tt> <tt class="py-keyword">in</tt> <tt id="link-28" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-28', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="GChartWrapper.constants" class="py-name" href="#" onclick="return doclink('link-29', 'constants', 'link-7');">constants</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Variable GChartWrapper.GChart'.TYPES=GChartWrapper.GChart%27-module.html#TYPES,Variable GChartWrapper.constants.TYPES=GChartWrapper.constants-module.html#TYPES"><a title="GChartWrapper.GChart'.TYPES
GChartWrapper.constants.TYPES" class="py-name" href="#" onclick="return doclink('link-30', 'TYPES', 'link-30');">TYPES</a></tt><tt class="py-op">:</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt id="link-31" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-31', 'chart', 'link-24');">chart</a></tt> <tt class="py-op">=</tt> <tt id="link-32" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-32', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-33" class="py-name" targets="Class GChartWrapper.GChart=GChartWrapper.GChart-class.html"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-33', 'GChart', 'link-33');">GChart</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-34', 'type', 'link-13');">type</a></tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">,</tt><tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">'Chart type %s not recognized'</tt><tt class="py-op">%</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-35', 'type', 'link-13');">type</a></tt><tt class="py-op">)</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">imgkwargs</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">n</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">nodelist</tt><tt class="py-op">:</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">            <tt class="py-name">rend</tt> <tt class="py-op">=</tt> <tt class="py-name">n</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method GChartWrapper.Bubble.render()=GChartWrapper.Bubble-class.html#render,Method GChartWrapper.GChart.render()=GChartWrapper.GChart-class.html#render,Method GChartWrapper.GChart'.Axes.render()=GChartWrapper.GChart%27.Axes-class.html#render,Method GChartWrapper.Note.render()=GChartWrapper.Note-class.html#render,Method GChartWrapper.Pin.render()=GChartWrapper.Pin-class.html#render,Method GChartWrapper.Text.render()=GChartWrapper.Text-class.html#render,Method GChartWrapper.charts.templatetags.charts.ChartNode.render()=GChartWrapper.charts.templatetags.charts.ChartNode-class.html#render,Method GChartWrapper.charts.templatetags.charts.GenericNode.render()=GChartWrapper.charts.templatetags.charts.GenericNode-class.html#render"><a title="GChartWrapper.Bubble.render
GChartWrapper.GChart.render
GChartWrapper.GChart'.Axes.render
GChartWrapper.Note.render
GChartWrapper.Pin.render
GChartWrapper.Text.render
GChartWrapper.charts.templatetags.charts.ChartNode.render
GChartWrapper.charts.templatetags.charts.GenericNode.render" class="py-name" href="#" onclick="return doclink('link-36', 'render', 'link-36');">render</a></tt><tt class="py-op">(</tt><tt class="py-name">context</tt><tt class="py-op">)</tt>            </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-37" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-37', 'type', 'link-13');">type</a></tt><tt class="py-op">(</tt><tt class="py-name">rend</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt id="link-38" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-38', 'type', 'link-13');">type</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'img'</tt><tt class="py-op">:</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">                    <tt class="py-keyword">for</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt><tt class="py-name">v</tt> <tt class="py-keyword">in</tt> <tt id="link-39" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-39', 'map', 'link-2');">map</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt class="py-name">x</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'='</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">                        <tt class="py-name">imgkwargs</tt><tt class="py-op">[</tt><tt class="py-name">k</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">v</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">                    <tt class="py-keyword">continue</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'axes'</tt><tt class="py-op">:</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">                    <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-40" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-40', 'chart', 'link-24');">chart</a></tt><tt class="py-op">,</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">list</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">tuple</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">                        <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-41" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-41', 'chart', 'link-24');">chart</a></tt><tt class="py-op">,</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">                    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">                        <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-42" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-42', 'chart', 'link-24');">chart</a></tt><tt class="py-op">,</tt> <tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">rend</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt><tt class="py-op">:</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt class="py-string">'img'</tt><tt class="py-op">:</tt>   </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt id="link-43" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-43', 'chart', 'link-24');">chart</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Method GChartWrapper.GChart.img()=GChartWrapper.GChart-class.html#img"><a title="GChartWrapper.GChart.img" class="py-name" href="#" onclick="return doclink('link-44', 'img', 'link-44');">img</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">imgkwargs</tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt class="py-string">'url'</tt><tt class="py-op">:</tt>   </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-45', 'chart', 'link-24');">chart</a></tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt>   </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">                <tt class="py-name">context</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mode</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-46', 'chart', 'link-24');">chart</a></tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-47" class="py-name"><a title="GChartWrapper.chart" class="py-name" href="#" onclick="return doclink('link-47', 'chart', 'link-24');">chart</a></tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="GChartWrapper.GChart.img" class="py-name" href="#" onclick="return doclink('link-48', 'img', 'link-44');">img</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">imgkwargs</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"> </tt>
<a name="make_chart"></a><div id="make_chart-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="make_chart-toggle" onclick="return toggle('make_chart');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts-module.html#make_chart">make_chart</a><tt class="py-op">(</tt><tt class="py-param">parser</tt><tt class="py-op">,</tt> <tt class="py-param">token</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="make_chart-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="make_chart-expanded"><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">    <tt class="py-name">nodelist</tt> <tt class="py-op">=</tt> <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Method GChartWrapper.jinja2.ChartExtension.parse()=GChartWrapper.jinja2.ChartExtension-class.html#parse"><a title="GChartWrapper.jinja2.ChartExtension.parse" class="py-name" href="#" onclick="return doclink('link-49', 'parse', 'link-49');">parse</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-string">'endchart'</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">    <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">delete_first_token</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">    <tt class="py-name">tokens</tt> <tt class="py-op">=</tt> <tt class="py-name">token</tt><tt class="py-op">.</tt><tt class="py-name">contents</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-50" class="py-name" targets="Class GChartWrapper.charts.templatetags.charts.ChartNode=GChartWrapper.charts.templatetags.charts.ChartNode-class.html"><a title="GChartWrapper.charts.templatetags.charts.ChartNode" class="py-name" href="#" onclick="return doclink('link-50', 'ChartNode', 'link-50');">ChartNode</a></tt><tt class="py-op">(</tt><tt class="py-name">tokens</tt><tt class="py-op">,</tt><tt class="py-name">nodelist</tt><tt class="py-op">)</tt> </tt>
</div><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">     </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt id="link-51" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-51', 'register', 'link-1');">register</a></tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-52', 'tag', 'link-5');">tag</a></tt><tt class="py-op">(</tt><tt class="py-string">'chart'</tt><tt class="py-op">,</tt> <tt id="link-53" class="py-name" targets="Function GChartWrapper.charts.templatetags.charts.make_chart()=GChartWrapper.charts.templatetags.charts-module.html#make_chart"><a title="GChartWrapper.charts.templatetags.charts.make_chart" class="py-name" href="#" onclick="return doclink('link-53', 'make_chart', 'link-53');">make_chart</a></tt><tt class="py-op">)</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"> </tt>
<a name="FancyNode"></a><div id="FancyNode-def"><a name="L129"></a><tt class="py-lineno">129</tt> <a class="py-toggle" href="#" id="FancyNode-toggle" onclick="return toggle('FancyNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.FancyNode-class.html">FancyNode</a><tt class="py-op">(</tt><tt class="py-base-class">GenericNode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FancyNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="FancyNode-expanded"><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">    <tt id="link-54" class="py-name" targets="Variable GChartWrapper.charts.templatetags.charts.FancyNode.cls=GChartWrapper.charts.templatetags.charts.FancyNode-class.html#cls"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-54', 'cls', 'link-54');">cls</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="FancyNode.post_render"></a><div id="FancyNode.post_render-def"><a name="L131"></a><tt class="py-lineno">131</tt> <a class="py-toggle" href="#" id="FancyNode.post_render-toggle" onclick="return toggle('FancyNode.post_render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.FancyNode-class.html#post_render">post_render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">context</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FancyNode.post_render-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FancyNode.post_render-expanded"><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'as'</tt><tt class="py-op">:</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">            <tt class="py-name">mode</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">n</tt><tt class="py-op">,</tt><tt class="py-name">arg</tt> <tt class="py-keyword">in</tt> <tt class="py-name">enumerate</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">arg</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\\n'</tt><tt class="py-op">,</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\\r'</tt><tt class="py-op">,</tt><tt class="py-string">'\r'</tt><tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">        <tt class="py-name">G</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-55', 'cls', 'link-54');">cls</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt><tt class="py-op">:</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt class="py-string">'img'</tt><tt class="py-op">:</tt>   </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">G</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="GChartWrapper.GChart.img" class="py-name" href="#" onclick="return doclink('link-56', 'img', 'link-44');">img</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt class="py-string">'url'</tt><tt class="py-op">:</tt>   </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">G</tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt>   </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">                <tt class="py-name">context</tt><tt class="py-op">[</tt><tt class="py-name">mode</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">G</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">G</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="GChartWrapper.GChart.img" class="py-name" href="#" onclick="return doclink('link-57', 'img', 'link-44');">img</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">         </tt>
<a name="NoteNode"></a><div id="NoteNode-def"><a name="L150"></a><tt class="py-lineno">150</tt> <a class="py-toggle" href="#" id="NoteNode-toggle" onclick="return toggle('NoteNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.NoteNode-class.html">NoteNode</a><tt class="py-op">(</tt><tt class="py-base-class">FancyNode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NoteNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="NoteNode-expanded"><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">    <tt id="link-58" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-58', 'cls', 'link-54');">cls</a></tt> <tt class="py-op">=</tt> <tt id="link-59" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-59', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-60" class="py-name" targets="Class GChartWrapper.Note=GChartWrapper.Note-class.html"><a title="GChartWrapper.Note" class="py-name" href="#" onclick="return doclink('link-60', 'Note', 'link-60');">Note</a></tt> </tt>
</div><a name="note"></a><div id="note-def"><a name="L152"></a><tt class="py-lineno">152</tt> <a class="py-toggle" href="#" id="note-toggle" onclick="return toggle('note');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts-module.html#note">note</a><tt class="py-op">(</tt><tt class="py-param">parser</tt><tt class="py-op">,</tt> <tt class="py-param">token</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="note-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="note-expanded"><a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-61" class="py-name" targets="Class GChartWrapper.charts.templatetags.charts.NoteNode=GChartWrapper.charts.templatetags.charts.NoteNode-class.html"><a title="GChartWrapper.charts.templatetags.charts.NoteNode" class="py-name" href="#" onclick="return doclink('link-61', 'NoteNode', 'link-61');">NoteNode</a></tt><tt class="py-op">(</tt><tt class="py-name">token</tt><tt class="py-op">.</tt><tt class="py-name">split_contents</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"><tt id="link-62" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-62', 'register', 'link-1');">register</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-63', 'tag', 'link-5');">tag</a></tt><tt class="py-op">(</tt><tt id="link-64" class="py-name" targets="Function GChartWrapper.charts.templatetags.charts.note()=GChartWrapper.charts.templatetags.charts-module.html#note"><a title="GChartWrapper.charts.templatetags.charts.note" class="py-name" href="#" onclick="return doclink('link-64', 'note', 'link-64');">note</a></tt><tt class="py-op">)</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"> </tt>
<a name="PinNode"></a><div id="PinNode-def"><a name="L156"></a><tt class="py-lineno">156</tt> <a class="py-toggle" href="#" id="PinNode-toggle" onclick="return toggle('PinNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.PinNode-class.html">PinNode</a><tt class="py-op">(</tt><tt class="py-base-class">FancyNode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PinNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PinNode-expanded"><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">    <tt id="link-65" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-65', 'cls', 'link-54');">cls</a></tt> <tt class="py-op">=</tt> <tt id="link-66" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-66', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-67" class="py-name" targets="Class GChartWrapper.Pin=GChartWrapper.Pin-class.html"><a title="GChartWrapper.Pin" class="py-name" href="#" onclick="return doclink('link-67', 'Pin', 'link-67');">Pin</a></tt> </tt>
</div><a name="pin"></a><div id="pin-def"><a name="L158"></a><tt class="py-lineno">158</tt> <a class="py-toggle" href="#" id="pin-toggle" onclick="return toggle('pin');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts-module.html#pin">pin</a><tt class="py-op">(</tt><tt class="py-param">parser</tt><tt class="py-op">,</tt> <tt class="py-param">token</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="pin-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="pin-expanded"><a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-68" class="py-name" targets="Class GChartWrapper.charts.templatetags.charts.PinNode=GChartWrapper.charts.templatetags.charts.PinNode-class.html"><a title="GChartWrapper.charts.templatetags.charts.PinNode" class="py-name" href="#" onclick="return doclink('link-68', 'PinNode', 'link-68');">PinNode</a></tt><tt class="py-op">(</tt><tt class="py-name">token</tt><tt class="py-op">.</tt><tt class="py-name">split_contents</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt id="link-69" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-69', 'register', 'link-1');">register</a></tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-70', 'tag', 'link-5');">tag</a></tt><tt class="py-op">(</tt><tt id="link-71" class="py-name" targets="Function GChartWrapper.charts.templatetags.charts.pin()=GChartWrapper.charts.templatetags.charts-module.html#pin"><a title="GChartWrapper.charts.templatetags.charts.pin" class="py-name" href="#" onclick="return doclink('link-71', 'pin', 'link-71');">pin</a></tt><tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"> </tt>
<a name="TextNode"></a><div id="TextNode-def"><a name="L162"></a><tt class="py-lineno">162</tt> <a class="py-toggle" href="#" id="TextNode-toggle" onclick="return toggle('TextNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.TextNode-class.html">TextNode</a><tt class="py-op">(</tt><tt class="py-base-class">FancyNode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TextNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="TextNode-expanded"><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">    <tt id="link-72" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-72', 'cls', 'link-54');">cls</a></tt> <tt class="py-op">=</tt> <tt id="link-73" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-73', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-74" class="py-name" targets="Class GChartWrapper.Text=GChartWrapper.Text-class.html"><a title="GChartWrapper.Text" class="py-name" href="#" onclick="return doclink('link-74', 'Text', 'link-74');">Text</a></tt> </tt>
</div><a name="text"></a><div id="text-def"><a name="L164"></a><tt class="py-lineno">164</tt> <a class="py-toggle" href="#" id="text-toggle" onclick="return toggle('text');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts-module.html#text">text</a><tt class="py-op">(</tt><tt class="py-param">parser</tt><tt class="py-op">,</tt> <tt class="py-param">token</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="text-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="text-expanded"><a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-75" class="py-name" targets="Class GChartWrapper.charts.templatetags.charts.TextNode=GChartWrapper.charts.templatetags.charts.TextNode-class.html"><a title="GChartWrapper.charts.templatetags.charts.TextNode" class="py-name" href="#" onclick="return doclink('link-75', 'TextNode', 'link-75');">TextNode</a></tt><tt class="py-op">(</tt><tt class="py-name">token</tt><tt class="py-op">.</tt><tt class="py-name">split_contents</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"><tt id="link-76" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-76', 'register', 'link-1');">register</a></tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-77', 'tag', 'link-5');">tag</a></tt><tt class="py-op">(</tt><tt id="link-78" class="py-name" targets="Function GChartWrapper.charts.templatetags.charts.text()=GChartWrapper.charts.templatetags.charts-module.html#text"><a title="GChartWrapper.charts.templatetags.charts.text" class="py-name" href="#" onclick="return doclink('link-78', 'text', 'link-78');">text</a></tt><tt class="py-op">)</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"> </tt>
<a name="BubbleNode"></a><div id="BubbleNode-def"><a name="L168"></a><tt class="py-lineno">168</tt> <a class="py-toggle" href="#" id="BubbleNode-toggle" onclick="return toggle('BubbleNode');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts.BubbleNode-class.html">BubbleNode</a><tt class="py-op">(</tt><tt class="py-base-class">FancyNode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BubbleNode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BubbleNode-expanded"><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">    <tt id="link-79" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-79', 'cls', 'link-54');">cls</a></tt> <tt class="py-op">=</tt> <tt id="link-80" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-80', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-81" class="py-name" targets="Class GChartWrapper.Bubble=GChartWrapper.Bubble-class.html"><a title="GChartWrapper.Bubble" class="py-name" href="#" onclick="return doclink('link-81', 'Bubble', 'link-81');">Bubble</a></tt> </tt>
</div><a name="bubble"></a><div id="bubble-def"><a name="L170"></a><tt class="py-lineno">170</tt> <a class="py-toggle" href="#" id="bubble-toggle" onclick="return toggle('bubble');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.charts.templatetags.charts-module.html#bubble">bubble</a><tt class="py-op">(</tt><tt class="py-param">parser</tt><tt class="py-op">,</tt> <tt class="py-param">token</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="bubble-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="bubble-expanded"><a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-82" class="py-name" targets="Class GChartWrapper.charts.templatetags.charts.BubbleNode=GChartWrapper.charts.templatetags.charts.BubbleNode-class.html"><a title="GChartWrapper.charts.templatetags.charts.BubbleNode" class="py-name" href="#" onclick="return doclink('link-82', 'BubbleNode', 'link-82');">BubbleNode</a></tt><tt class="py-op">(</tt><tt class="py-name">token</tt><tt class="py-op">.</tt><tt class="py-name">split_contents</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line"><tt id="link-83" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.register" class="py-name" href="#" onclick="return doclink('link-83', 'register', 'link-1');">register</a></tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.tag" class="py-name" href="#" onclick="return doclink('link-84', 'tag', 'link-5');">tag</a></tt><tt class="py-op">(</tt><tt id="link-85" class="py-name" targets="Function GChartWrapper.charts.templatetags.charts.bubble()=GChartWrapper.charts.templatetags.charts-module.html#bubble"><a title="GChartWrapper.charts.templatetags.charts.bubble" class="py-name" href="#" onclick="return doclink('link-85', 'bubble', 'link-85');">bubble</a></tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="GChartWrapper-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1
    on Wed Sep 30 14:59:38 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
